package day9;

import java.util.*;

/**
 *另类加法
 */
public class UnusualAdd {
    public static void main(String[] args) {
        System.out.println(addAB(5, 2));
    }
    public static int addAB(int A, int B) {
        // write code here
        int[] num = new int[2];
        num[0] = A;
        num[1] = B;
        return Arrays.stream(num).sum();

    }
}